<?php
include_once '../Core/Conexion.php';
include_once '../Core/Controlador.php';
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of cerrarSesion
 *
 * @author home
 */
class cerrarSesion extends Controlador
{
    function __construct() 
    {
        parent::__construct();
    }

    
    public function ejecutar() 
    {
        session_start();
        unset($_SESSION['usuario']);
        session_destroy();
        header('Location: ../index.php');
    }    
}

$controlador=new cerrarSesion();
$controlador->ejecutar();
?>
